package com.nervenets.web.adapter.jsonType;

import com.nervenets.web.adapter.HibernateJsonType;
import com.nervenets.web.hibernate.domain.user.UserRole;
import org.hibernate.type.descriptor.sql.VarcharTypeDescriptor;

public class UserRoleJson extends HibernateJsonType {
    @Override
    protected Class sourceClass() {
        return UserRole.class;
    }

    @Override
    protected boolean isArray() {
        return false;
    }

    @Override
    public int getSqlType() {
        return VarcharTypeDescriptor.INSTANCE.getSqlType();
    }
}
